package zjut.cocouml.model;

import java.util.List;

public class BActor extends Compartment implements Relatable{
	
	private String actorName;
	
	public BActor() {
		this.actorName = "Actor";
	}
	public String getActorName() {
		return actorName;
	}

	public void setActorName(String actorName) {
		this.actorName = actorName;
	}

	protected void addUseCase(Compartment compart){
		if ( !this.usecases.contains(compart)) {
			this.usecases.add(compart);
		}
	}
	protected void removeUseCase(Compartment compart){
		if ( this.implementsFrom.contains(compart)) {
			this.implementsFrom.remove(compart);
		}
	}
	
	
}
